
/*********************************************************************************
File info	:				gtlib.h
Mark		:	
Ver			:				V1.00
Date		:				2013.1.9
*********************************************************************************/

#include "..\gtlib\gtDev\gtDev.h"
#include "..\gtlib\gtApp\gtApp.h"
#include "..\gtlib\gtfs.h"
#include "..\gtlib\gtNet\gtNet.h"
#include "..\gtlib\gtUi\gtui.h"
#include <RTL.h>

uint8   bcd2bin8(uint8  x);
uint8   bin2bcd8(uint8  x);
uint16 bin2bcd16(uint16 x);
uint16 bcd2bin16(uint16 x);
uint32 bin2bcd32(uint32 x);
uint32 bcd2bin32(uint32 x);
uint64 bin2bcd64(uint64 x);
uint64 bcd2bin64(uint64 x);

#define BcdToBin8 bcd2bin8
#define BinToBcd8 bin2bcd8
#define BinToBcd16 bin2bcd16
#define BcdToBin16 bcd2bin16
#define BinToBcd32 bin2bcd32
#define BcdToBin32 bcd2bin32
#define BinToBcd64 bin2bcd64
#define BcdToBin64 bcd2bin64

void TimeToBcd(U32 time, uint8 *dst);


#define FALSE 0
#define TRUE  1



#define INFO(tn, id, info)	 gt_para_getIndex(tn, id, info)
#define SAVE(sno, di, pbuf, len)	gt_para_process(sno, di, pbuf, len, 'w', 0)
#define READ(sno, di, pbuf, len)	gt_para_process(sno, di, (U8 *)pbuf, len, 'r', 0)
#define TABLE t_sysTable
/*********************************************************************************
						     End of file
*********************************************************************************/
